import React from 'react'
import { Switch, Route, Redirect } from 'react-router-dom';
import Suguan from './suguan'
import Student from './student'
function Default(props) {
    const baseUrl = props.match.path;
    return (
        <div>
            <Switch>
                <Route path={baseUrl + "/suguan"} component={Suguan} />
                <Route path={baseUrl + "/student"} component={Student} />
                <Redirect exact from={baseUrl} to={baseUrl + '/suguan'} />
            </Switch>
        </div>
    )
}

export default Default;